package com.itheima.day11.myOtherio.test2;

import java.io.Serializable;

/*
    需求：创建多个Javabean类对象写到文件中，再次读取到内存中。
 */
public class Student implements Serializable {
    private static final long serialVersionUID = 8683452581122892189L;

    private String stuid;
    private String name;

    public Student() {
    }

    public Student(String stuid, String name) {
        this.stuid = stuid;
        this.name = name;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getStuid() {
        return stuid;
    }

    public void setStuid(String stuid) {
        this.stuid = stuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuid='" + stuid + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
